<?php

/*
Admin Setup/Edit Starter Kit (admin_starter_kit.php)
*/

$page_title = "Admin Setup/Edit Starter Kit";
$rank_check = 7;
include "../header.inc.php";

print "$openHTML";

$findKit = fetch("SELECT * FROM starter_items WHERE game = '$game'");
$getI1 = fetch("SELECT * FROM items2 WHERE id = '$findKit[item_1]' AND game = '$game'");
$getI2 = fetch("SELECT * FROM items2 WHERE id = '$findKit[item_2]' AND game = '$game'");
$getI3 = fetch("SELECT * FROM items2 WHERE id = '$findKit[item_3]' AND game = '$game'");
$getI4 = fetch("SELECT * FROM items2 WHERE id = '$findKit[item_4]' AND game = '$game'");
$getI5 = fetch("SELECT * FROM items2 WHERE id = '$findKit[item_5]' AND game = '$game'");


ECHO <<<END
<FORM ACTION="admin_starter_kit.pro.php?game=$game" METHOD=POST>
<CENTER><TABLE CELLPADDING=0 WIDTH=400>
   <TR BGCOLOR="#CCFFCC">
      <TD HEIGHT=55>
         <CENTER><FONT SIZE="-1">Starter Item #1<BR>
         <INPUT TYPE=text NAME="item_1" VALUE="$getI1[item_name]" SIZE=18></FONT></CENTER>
      </TD>
      <TD HEIGHT=55>
         <CENTER><FONT SIZE="-1">Starter Item #2<BR>
         <INPUT TYPE=text NAME="item_2" VALUE="$getI2[item_name]" SIZE=18></FONT></CENTER>
      </TD>
      <TD HEIGHT=55>
         <CENTER><FONT SIZE="-1">Starter Item #3<BR>
         <INPUT TYPE=text NAME="item_3" VALUE="$getI3[item_name]" SIZE=18></FONT></CENTER>
      </TD>
   </TR>
</TABLE>
<TABLE CELLPADDING=0 WIDTH=400>
   <TR BGCOLOR="#CCFFCC">
      <TD HEIGHT=55>
         <CENTER><FONT SIZE="-1">Starter Item #4<BR>
         <INPUT TYPE=text NAME="item_4" VALUE="$getI4[item_name]" SIZE=18></FONT></CENTER>
      </TD>
      <TD HEIGHT=55>
         <CENTER><FONT SIZE="-1">Starter Item #5<BR>
         <INPUT TYPE=text NAME="item_5" VALUE="$getI5[item_name]" SIZE=18></FONT></CENTER>
      </TD>
   </TR>
   <TR>
      <TD COLSPAN=2 HEIGHT=20 BGCOLOR="#CCFFCC">
         <CENTER><INPUT TYPE=submit NAME=Submit VALUE="Setup/Edit Starter Pack"></CENTER>
      </TD>
   </TR>
</TABLE>
</CENTER>
</form>

END;

print "$closeHTML";
?>
